package ca.mcgill.model.functional.triggering;

import java.util.ArrayList;
import java.util.List;

import ca.mcgill.model.functional.Transition;

public abstract class Event {

	private List<Transition> triggeredTransitions = new ArrayList<Transition>();

	private String name;

	public Event(String name) {
		this.name = name;
	}

	public void setTriggeredTransitions(List<Transition> triggeredTransitions) {

		this.triggeredTransitions = triggeredTransitions;

	}

	public List<Transition> getTriggeredTransitions() {

		return this.triggeredTransitions;

	}

	public void addTriggeredTransition(Transition transition) {

		this.triggeredTransitions.add(transition);

	}

	public String getName() {
		return this.name;
	}

}
